# #coding:utf-8
# __author__ = "test"
# __date__ = "2017/6/11 23:38"
# import xadmin
# from xadmin import views

# from .models import EmailVerifyRecord, Banner
# """将models里面的模块内容，通过类注册到后台显示出来 """

# class BaseSetting(object):
#     #生成后台主题功能，将enable_themes = True
#     enable_themes = True
#     use_bootswatch = True

# class GlobalSettings(object):
#     #全局修改，参数是固定写法
#     #页面title
#     site_title = "慕学后台管理系统"
#     site_footer = "慕学在线网"

#     #页面左侧目录收起
#     menu_style = "accordion"

# class EmailVerifyRecordAdmin(object):
#     #list_display决定在前端显示什么项
#     list_display = ["code", "email", "send_type", "send_time"]
#     #search_fields页面搜索项
#     search_fields = ["code", "email", "send_type"]
#     #list_filter筛选(过滤器)：根据类型来做
#     list_filter = ["code", "email", "send_type", "send_time"]

# class BannerAdmin(object):
#     #list_display决定在前端显示什么项
#     list_display = ["title", "image", "url", "index", "add_time"]
#     #search_fields页面搜索项
#     search_fields = ["title", "image", "url", "index"]
#     #list_filter筛选(过滤器)：根据类型来做
#     list_filter = ["title", "image", "url", "index", "add_time"]


# xadmin.site.register(EmailVerifyRecord, EmailVerifyRecordAdmin)
# xadmin.site.register(Banner, BannerAdmin)
# xadmin.site.register(views.BaseAdminView, BaseSetting)
# xadmin.site.register(views.CommAdminView, GlobalSettings)
